<%@ include file="/jsp/include.jsp" %>

<%
BookSearch searchContainer = (BookSearch)request.getAttribute("liferay-ui:search:searchContainer");
ResultRow row = (ResultRow)request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);
Book book = (Book)row.getObject();
%>

<liferay-ui:icon-menu>
		<portlet:renderURL windowState="<%= WindowState.MAXIMIZED.toString() %>" var="editURL">
			<portlet:param name="action" value="editBook" />
			<portlet:param name="redirect" value="<%= searchContainer.getIteratorURL().toString() %>" />
			<portlet:param name="bookId" value="<%= String.valueOf(book.getBookId()) %>" />
		</portlet:renderURL>
		<liferay-ui:icon image="edit" url="<%= editURL %>" />
</liferay-ui:icon-menu>